package com.lse_api.entity;

import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * token 单点登录
 * </p>
 *
 * @author 祁雪
 * @since 2020-05-11
 */
public class Token implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    private String uid;

    /**
     * 用户uid
     */
    private String usersUid;

    /**
     * token 信息
     */
    private String info;

    /**
     * token 登录ip
     */
    private String tokenIp;

    /**
     * 登录更新日期
     */
    private Date tokenTime;


    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsersUid() {
        return usersUid;
    }

    public void setUsersUid(String usersUid) {
        this.usersUid = usersUid;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getTokenIp() {
        return tokenIp;
    }

    public void setTokenIp(String tokenIp) {
        this.tokenIp = tokenIp;
    }

    public Date getTokenTime() {
        return tokenTime;
    }

    public void setTokenTime(Date tokenTime) {
        this.tokenTime = tokenTime;
    }

    @Override
    public String toString() {
        return "Token{" +
                "uid=" + uid +
                ", usersUid=" + usersUid +
                ", info=" + info +
                ", tokenIp=" + tokenIp +
                ", tokenTime=" + tokenTime +
                "}";
    }
}
